package cn.itcast;

import cn.EMOTIONAL;

public class Demo {


    public static void main(String[] args) {
            EMOTIONAL.DIVORCE.info();
        for (EMOTIONAL value : EMOTIONAL.values()) {
            System.out.println(value.name()+"+"+value.toString());
            if (value.getValue().equals("已婚")){
                System.out.println(
                        true
                );
            }
        }

    }
}
